package com.lg.system.role.service;

import java.util.List;

import com.baomidou.mybatisplus.service.IService;
import com.lg.system.menu.entity.Menu;
import com.lg.system.role.entity.RoleMenu;
import com.lg.utils.Tree;

/**
 * <p>
 * 角色与菜单对应关系 服务类
 * </p>
 *
 * @author dl
 * @since 2018-03-23
 */
public interface RoleMenuService extends IService<RoleMenu> {

	Tree<Menu> selectMenuByRole(Long roleId,Long userId);

	boolean assignMenu(Long roleId, List<Long> menuIds);
	
	boolean deleteByRoleId(Long roleId);
	
	boolean deleteByMenuId(Long menuId);
	
}
